#ifndef _SET_MAINPAGE_CALLBACK_H
#define _SET_MAINPAGE_CALLBACK_H

#include <QPixmap>
#include "AnCallback.h"
#include "AnMainwin.h"

class _SetMainpageCallback : public AnCallback
{
    Q_OBJECT
private:
    AnMainwin * amw;    //主窗口的实例指针，用于访问主窗口内的控件
public:
    _SetMainpageCallback(AnMainwin * anMainwin);
    void response(QJsonObject an_resp);     //用于接受回应

public slots:
    void connect_close();   //接受连接关闭的系统信号的槽
    void connect_build();   //接受连接建立的系统信号的槽
};


class _ScreencapCallback : public AnCallback
{
    Q_OBJECT
private:
    AnMainwin * amw;
public:
    QPixmap device_not_connect;

    _ScreencapCallback(AnMainwin * anMainwin);
    void response(QJsonObject an_resp);

public slots:
    void save_clicked();
    void refresh_clicked();
    void connect_close();
    //void connect_build();
};

#endif
